package switchviz.core.signal;

import switchviz.core.SwitchVizException;
import switchviz.core.mib.MIBDataModel;
import switchviz.core.mib.MIBFacade;

public class OIDSignalDataModel  implements ISignalDataModel
{
	private String _oid = "";
	private MIBDataModel _mibDataModel = null;
	private String _alias = "";
	private int _port = 0;
	
	public OIDSignalDataModel(String oid) throws SwitchVizException
	{
		_oid = oid;
		_mibDataModel = MIBFacade.getDataModel(_oid);
	}
	
	public String getOid() 
	{
		return _oid;
	}
	
	public String getAlias()
	{
		return _alias;
	}
	
	public void setAlias(String alias)
	{
		_alias = alias;
	}

	public boolean isPortRequired() 
	{
		return _mibDataModel.getPortRequired();
	}
	
	public int getPort()
	{
		return _port;
	}
	
	public void setPort(int port)
	{
		_port = port;
	}
}
